package ext.db;


public class Tables {
	
	private String[] tables;

	public Tables(String...tables){
		this.tables = tables;
	}
	
	public Tables(Class<?>...modelClass){
		String[] tbs = new String[modelClass.length];
		for (int i = 0; i < tbs.length; i++)
			tbs[i] = Model.getModelTableName(modelClass[i]);
		this.tables = tbs;
	}
	
	public String[] getTables(){
		if(tables != null)
			return tables;
		return new String[]{};
	}
}
